package com.midou.administration.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
/**
 * 食材明细表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
/*@TableName("ingredients_detailed")*/
public class IngredientsDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增(记录ID)
     */
    @TableId(value = "detailed_Id", type = IdType.AUTO)
    private Integer detailedId;

    /**
     * 使用数量
     */
    private Integer detailedCount;

    /**
     * 使用食材的菜品
     */
    @TableField("menu_Id")
    private Integer menuId;

    /**
     * 使用日期，默认当前日期
     */
    private LocalDateTime detailedDate;

    /**
     * 操作类型1.入库、0.使用
     */
    private String detailedOperation;


}
